package itsm.isperp.module.controller.app;

import itsm.isperp.framework.data.domain.PageResponse;
import itsm.isperp.framework.web.controller.BaseController;
import itsm.isperp.framework.web.request.JqGridRequest;
import itsm.isperp.module.entity.app.AppJobHistory;
import itsm.isperp.module.service.app.AppJobHistoryService;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 系统帮助的控制器
 * 
 * @author lizx
 * @date 2013-7-27
 */
@Controller
@RequestMapping("app/jobHistory")
public class AppJobHistoryController extends BaseController<AppJobHistory> {

	@Autowired
	protected AppJobHistoryService appJobHistoryService;

	@Override
	public AppJobHistoryService getService() {
		return this.appJobHistoryService;
	}

	@Override
	public String getPageTitle() {
		return "系统定时任务历史";
	}

	@RequestMapping("listDetails")
	@ResponseBody
	public PageResponse<Map<String, Object>> listDetails(JqGridRequest request,
			HttpServletRequest req) {
		return this.getService().findAllDetails(request);

	}

}
